﻿#ifndef INBOUND_H
#define INBOUND_H

#include <QDialog>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <QMessageBox>

namespace Ui {
class Inbound;
}

class Inbound : public QDialog
{
    Q_OBJECT

public:
    explicit Inbound(QDialog *parent = nullptr, QString select_id_tmp="");
    ~Inbound();
    void comboboxinit();

protected:
    bool addStockOperationRecord(const QString &operationType, const QString &stockId, const QString &stockName, int amount, const QString &operatorName, const QString &remarks);
private slots:
    void on_inputButton_clicked();

    void on_exitButton_clicked();

private:
    Ui::Inbound *ui;
    QString select_id;
};

#endif // INBOUND_H
